# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=py3-ufo2ft
pkgver=2.14.1
pkgrel=0
pkgdesc="bridge from UFOs to FontTools objects"
url="https://github.com/googlefonts/ufo2ft"
arch="noarch !s390x !mips !mips64" # skia-pathops
license="MIT"
depends="python3 py3-fonttools py3-defcon py3-cu2qu py3-compreffor
	py3-booleanoperations py3-ufolib2 py3-skia-pathops"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://github.com/googlefonts/ufo2ft/archive/v$pkgver.tar.gz"
builddir="$srcdir/ufo2ft-$pkgver"

build() {
	git init
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" pytest-3
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="a7066891d641610fb03b56aad9e791c33bd5c953f76f354004e9b187967b7ab407422814c0640ef04fc6ae8f7ba0a61b9968e7363e390c0ae0225e261e235fdb  py3-ufo2ft-2.14.1.tar.gz"
